package com.example.echoewish.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

import com.example.echoewish.R;
import com.example.echoewish.ui.main_activity.MainActivity;
import com.example.echoewish.util.StatusBarUtils;

public class StartActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        StatusBarUtils.setWindowStatusBarColor(this, R.color.white);
        setContentView(R.layout.activity_start);
        waitSomeTime();
    }

    public void waitSomeTime()
    {
        new Thread()
        {
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                }
                catch (Exception e)
                {

                }
                Intent i=new Intent(StartActivity.this,MainActivity.class);
                startActivity(i);
                finish();
            }
        }.start();
    }
}